package net.jeeshop.web.action.front;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 前端首页
 */
@Controller
@RequestMapping("/")
public class IndexAction {

    @RequestMapping({"/","/index"})
    public String index() {
//        return "index";

        return "redirect:indexnews/list";
    }

    @RequestMapping("indexJshop")
    public String indexJshop() {
//        return "index";
        return "index";
    }

    @RequestMapping("contact")
    public String contact() {
//        return "index";
        return "newindex/contact";
    }

    @RequestMapping("newlist")
    public String newlist() {
//        return "index";
        return "newindex/newlist";
    }

    @RequestMapping("newsdetail")
    public String newsdetail() {
//        return "index";
        return "newindex/newsdetail";
    }
}
